package com.bjsxt.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class DrugExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DrugExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andDrugidIsNull() {
            addCriterion("drugid is null");
            return (Criteria) this;
        }

        public Criteria andDrugidIsNotNull() {
            addCriterion("drugid is not null");
            return (Criteria) this;
        }

        public Criteria andDrugidEqualTo(Integer value) {
            addCriterion("drugid =", value, "drugid");
            return (Criteria) this;
        }

        public Criteria andDrugidNotEqualTo(Integer value) {
            addCriterion("drugid <>", value, "drugid");
            return (Criteria) this;
        }

        public Criteria andDrugidGreaterThan(Integer value) {
            addCriterion("drugid >", value, "drugid");
            return (Criteria) this;
        }

        public Criteria andDrugidGreaterThanOrEqualTo(Integer value) {
            addCriterion("drugid >=", value, "drugid");
            return (Criteria) this;
        }

        public Criteria andDrugidLessThan(Integer value) {
            addCriterion("drugid <", value, "drugid");
            return (Criteria) this;
        }

        public Criteria andDrugidLessThanOrEqualTo(Integer value) {
            addCriterion("drugid <=", value, "drugid");
            return (Criteria) this;
        }

        public Criteria andDrugidIn(List<Integer> values) {
            addCriterion("drugid in", values, "drugid");
            return (Criteria) this;
        }

        public Criteria andDrugidNotIn(List<Integer> values) {
            addCriterion("drugid not in", values, "drugid");
            return (Criteria) this;
        }

        public Criteria andDrugidBetween(Integer value1, Integer value2) {
            addCriterion("drugid between", value1, value2, "drugid");
            return (Criteria) this;
        }

        public Criteria andDrugidNotBetween(Integer value1, Integer value2) {
            addCriterion("drugid not between", value1, value2, "drugid");
            return (Criteria) this;
        }

        public Criteria andDrugimgIsNull() {
            addCriterion("drugimg is null");
            return (Criteria) this;
        }

        public Criteria andDrugimgIsNotNull() {
            addCriterion("drugimg is not null");
            return (Criteria) this;
        }

        public Criteria andDrugimgEqualTo(String value) {
            addCriterion("drugimg =", value, "drugimg");
            return (Criteria) this;
        }

        public Criteria andDrugimgNotEqualTo(String value) {
            addCriterion("drugimg <>", value, "drugimg");
            return (Criteria) this;
        }

        public Criteria andDrugimgGreaterThan(String value) {
            addCriterion("drugimg >", value, "drugimg");
            return (Criteria) this;
        }

        public Criteria andDrugimgGreaterThanOrEqualTo(String value) {
            addCriterion("drugimg >=", value, "drugimg");
            return (Criteria) this;
        }

        public Criteria andDrugimgLessThan(String value) {
            addCriterion("drugimg <", value, "drugimg");
            return (Criteria) this;
        }

        public Criteria andDrugimgLessThanOrEqualTo(String value) {
            addCriterion("drugimg <=", value, "drugimg");
            return (Criteria) this;
        }

        public Criteria andDrugimgLike(String value) {
            addCriterion("drugimg like", value, "drugimg");
            return (Criteria) this;
        }

        public Criteria andDrugimgNotLike(String value) {
            addCriterion("drugimg not like", value, "drugimg");
            return (Criteria) this;
        }

        public Criteria andDrugimgIn(List<String> values) {
            addCriterion("drugimg in", values, "drugimg");
            return (Criteria) this;
        }

        public Criteria andDrugimgNotIn(List<String> values) {
            addCriterion("drugimg not in", values, "drugimg");
            return (Criteria) this;
        }

        public Criteria andDrugimgBetween(String value1, String value2) {
            addCriterion("drugimg between", value1, value2, "drugimg");
            return (Criteria) this;
        }

        public Criteria andDrugimgNotBetween(String value1, String value2) {
            addCriterion("drugimg not between", value1, value2, "drugimg");
            return (Criteria) this;
        }

        public Criteria andProvideridIsNull() {
            addCriterion("providerid is null");
            return (Criteria) this;
        }

        public Criteria andProvideridIsNotNull() {
            addCriterion("providerid is not null");
            return (Criteria) this;
        }

        public Criteria andProvideridEqualTo(Integer value) {
            addCriterion("providerid =", value, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridNotEqualTo(Integer value) {
            addCriterion("providerid <>", value, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridGreaterThan(Integer value) {
            addCriterion("providerid >", value, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridGreaterThanOrEqualTo(Integer value) {
            addCriterion("providerid >=", value, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridLessThan(Integer value) {
            addCriterion("providerid <", value, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridLessThanOrEqualTo(Integer value) {
            addCriterion("providerid <=", value, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridIn(List<Integer> values) {
            addCriterion("providerid in", values, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridNotIn(List<Integer> values) {
            addCriterion("providerid not in", values, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridBetween(Integer value1, Integer value2) {
            addCriterion("providerid between", value1, value2, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridNotBetween(Integer value1, Integer value2) {
            addCriterion("providerid not between", value1, value2, "providerid");
            return (Criteria) this;
        }

        public Criteria andDrugnameIsNull() {
            addCriterion("drugname is null");
            return (Criteria) this;
        }

        public Criteria andDrugnameIsNotNull() {
            addCriterion("drugname is not null");
            return (Criteria) this;
        }

        public Criteria andDrugnameEqualTo(String value) {
            addCriterion("drugname =", value, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugnameNotEqualTo(String value) {
            addCriterion("drugname <>", value, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugnameGreaterThan(String value) {
            addCriterion("drugname >", value, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugnameGreaterThanOrEqualTo(String value) {
            addCriterion("drugname >=", value, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugnameLessThan(String value) {
            addCriterion("drugname <", value, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugnameLessThanOrEqualTo(String value) {
            addCriterion("drugname <=", value, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugnameLike(String value) {
            addCriterion("drugname like", value, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugnameNotLike(String value) {
            addCriterion("drugname not like", value, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugnameIn(List<String> values) {
            addCriterion("drugname in", values, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugnameNotIn(List<String> values) {
            addCriterion("drugname not in", values, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugnameBetween(String value1, String value2) {
            addCriterion("drugname between", value1, value2, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugnameNotBetween(String value1, String value2) {
            addCriterion("drugname not between", value1, value2, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugsizeIsNull() {
            addCriterion("drugsize is null");
            return (Criteria) this;
        }

        public Criteria andDrugsizeIsNotNull() {
            addCriterion("drugsize is not null");
            return (Criteria) this;
        }

        public Criteria andDrugsizeEqualTo(String value) {
            addCriterion("drugsize =", value, "drugsize");
            return (Criteria) this;
        }

        public Criteria andDrugsizeNotEqualTo(String value) {
            addCriterion("drugsize <>", value, "drugsize");
            return (Criteria) this;
        }

        public Criteria andDrugsizeGreaterThan(String value) {
            addCriterion("drugsize >", value, "drugsize");
            return (Criteria) this;
        }

        public Criteria andDrugsizeGreaterThanOrEqualTo(String value) {
            addCriterion("drugsize >=", value, "drugsize");
            return (Criteria) this;
        }

        public Criteria andDrugsizeLessThan(String value) {
            addCriterion("drugsize <", value, "drugsize");
            return (Criteria) this;
        }

        public Criteria andDrugsizeLessThanOrEqualTo(String value) {
            addCriterion("drugsize <=", value, "drugsize");
            return (Criteria) this;
        }

        public Criteria andDrugsizeLike(String value) {
            addCriterion("drugsize like", value, "drugsize");
            return (Criteria) this;
        }

        public Criteria andDrugsizeNotLike(String value) {
            addCriterion("drugsize not like", value, "drugsize");
            return (Criteria) this;
        }

        public Criteria andDrugsizeIn(List<String> values) {
            addCriterion("drugsize in", values, "drugsize");
            return (Criteria) this;
        }

        public Criteria andDrugsizeNotIn(List<String> values) {
            addCriterion("drugsize not in", values, "drugsize");
            return (Criteria) this;
        }

        public Criteria andDrugsizeBetween(String value1, String value2) {
            addCriterion("drugsize between", value1, value2, "drugsize");
            return (Criteria) this;
        }

        public Criteria andDrugsizeNotBetween(String value1, String value2) {
            addCriterion("drugsize not between", value1, value2, "drugsize");
            return (Criteria) this;
        }

        public Criteria andDrugplanIsNull() {
            addCriterion("drugplan is null");
            return (Criteria) this;
        }

        public Criteria andDrugplanIsNotNull() {
            addCriterion("drugplan is not null");
            return (Criteria) this;
        }

        public Criteria andDrugplanEqualTo(String value) {
            addCriterion("drugplan =", value, "drugplan");
            return (Criteria) this;
        }

        public Criteria andDrugplanNotEqualTo(String value) {
            addCriterion("drugplan <>", value, "drugplan");
            return (Criteria) this;
        }

        public Criteria andDrugplanGreaterThan(String value) {
            addCriterion("drugplan >", value, "drugplan");
            return (Criteria) this;
        }

        public Criteria andDrugplanGreaterThanOrEqualTo(String value) {
            addCriterion("drugplan >=", value, "drugplan");
            return (Criteria) this;
        }

        public Criteria andDrugplanLessThan(String value) {
            addCriterion("drugplan <", value, "drugplan");
            return (Criteria) this;
        }

        public Criteria andDrugplanLessThanOrEqualTo(String value) {
            addCriterion("drugplan <=", value, "drugplan");
            return (Criteria) this;
        }

        public Criteria andDrugplanLike(String value) {
            addCriterion("drugplan like", value, "drugplan");
            return (Criteria) this;
        }

        public Criteria andDrugplanNotLike(String value) {
            addCriterion("drugplan not like", value, "drugplan");
            return (Criteria) this;
        }

        public Criteria andDrugplanIn(List<String> values) {
            addCriterion("drugplan in", values, "drugplan");
            return (Criteria) this;
        }

        public Criteria andDrugplanNotIn(List<String> values) {
            addCriterion("drugplan not in", values, "drugplan");
            return (Criteria) this;
        }

        public Criteria andDrugplanBetween(String value1, String value2) {
            addCriterion("drugplan between", value1, value2, "drugplan");
            return (Criteria) this;
        }

        public Criteria andDrugplanNotBetween(String value1, String value2) {
            addCriterion("drugplan not between", value1, value2, "drugplan");
            return (Criteria) this;
        }

        public Criteria andDrugmfgdateIsNull() {
            addCriterion("drugmfgdate is null");
            return (Criteria) this;
        }

        public Criteria andDrugmfgdateIsNotNull() {
            addCriterion("drugmfgdate is not null");
            return (Criteria) this;
        }

        public Criteria andDrugmfgdateEqualTo(Date value) {
            addCriterionForJDBCDate("drugmfgdate =", value, "drugmfgdate");
            return (Criteria) this;
        }

        public Criteria andDrugmfgdateNotEqualTo(Date value) {
            addCriterionForJDBCDate("drugmfgdate <>", value, "drugmfgdate");
            return (Criteria) this;
        }

        public Criteria andDrugmfgdateGreaterThan(Date value) {
            addCriterionForJDBCDate("drugmfgdate >", value, "drugmfgdate");
            return (Criteria) this;
        }

        public Criteria andDrugmfgdateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("drugmfgdate >=", value, "drugmfgdate");
            return (Criteria) this;
        }

        public Criteria andDrugmfgdateLessThan(Date value) {
            addCriterionForJDBCDate("drugmfgdate <", value, "drugmfgdate");
            return (Criteria) this;
        }

        public Criteria andDrugmfgdateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("drugmfgdate <=", value, "drugmfgdate");
            return (Criteria) this;
        }

        public Criteria andDrugmfgdateIn(List<Date> values) {
            addCriterionForJDBCDate("drugmfgdate in", values, "drugmfgdate");
            return (Criteria) this;
        }

        public Criteria andDrugmfgdateNotIn(List<Date> values) {
            addCriterionForJDBCDate("drugmfgdate not in", values, "drugmfgdate");
            return (Criteria) this;
        }

        public Criteria andDrugmfgdateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("drugmfgdate between", value1, value2, "drugmfgdate");
            return (Criteria) this;
        }

        public Criteria andDrugmfgdateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("drugmfgdate not between", value1, value2, "drugmfgdate");
            return (Criteria) this;
        }

        public Criteria andDrugexpdateIsNull() {
            addCriterion("drugexpdate is null");
            return (Criteria) this;
        }

        public Criteria andDrugexpdateIsNotNull() {
            addCriterion("drugexpdate is not null");
            return (Criteria) this;
        }

        public Criteria andDrugexpdateEqualTo(Date value) {
            addCriterionForJDBCDate("drugexpdate =", value, "drugexpdate");
            return (Criteria) this;
        }

        public Criteria andDrugexpdateNotEqualTo(Date value) {
            addCriterionForJDBCDate("drugexpdate <>", value, "drugexpdate");
            return (Criteria) this;
        }

        public Criteria andDrugexpdateGreaterThan(Date value) {
            addCriterionForJDBCDate("drugexpdate >", value, "drugexpdate");
            return (Criteria) this;
        }

        public Criteria andDrugexpdateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("drugexpdate >=", value, "drugexpdate");
            return (Criteria) this;
        }

        public Criteria andDrugexpdateLessThan(Date value) {
            addCriterionForJDBCDate("drugexpdate <", value, "drugexpdate");
            return (Criteria) this;
        }

        public Criteria andDrugexpdateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("drugexpdate <=", value, "drugexpdate");
            return (Criteria) this;
        }

        public Criteria andDrugexpdateIn(List<Date> values) {
            addCriterionForJDBCDate("drugexpdate in", values, "drugexpdate");
            return (Criteria) this;
        }

        public Criteria andDrugexpdateNotIn(List<Date> values) {
            addCriterionForJDBCDate("drugexpdate not in", values, "drugexpdate");
            return (Criteria) this;
        }

        public Criteria andDrugexpdateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("drugexpdate between", value1, value2, "drugexpdate");
            return (Criteria) this;
        }

        public Criteria andDrugexpdateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("drugexpdate not between", value1, value2, "drugexpdate");
            return (Criteria) this;
        }

        public Criteria andDrugpriceIsNull() {
            addCriterion("drugprice is null");
            return (Criteria) this;
        }

        public Criteria andDrugpriceIsNotNull() {
            addCriterion("drugprice is not null");
            return (Criteria) this;
        }

        public Criteria andDrugpriceEqualTo(Integer value) {
            addCriterion("drugprice =", value, "drugprice");
            return (Criteria) this;
        }

        public Criteria andDrugpriceNotEqualTo(Integer value) {
            addCriterion("drugprice <>", value, "drugprice");
            return (Criteria) this;
        }

        public Criteria andDrugpriceGreaterThan(Integer value) {
            addCriterion("drugprice >", value, "drugprice");
            return (Criteria) this;
        }

        public Criteria andDrugpriceGreaterThanOrEqualTo(Integer value) {
            addCriterion("drugprice >=", value, "drugprice");
            return (Criteria) this;
        }

        public Criteria andDrugpriceLessThan(Integer value) {
            addCriterion("drugprice <", value, "drugprice");
            return (Criteria) this;
        }

        public Criteria andDrugpriceLessThanOrEqualTo(Integer value) {
            addCriterion("drugprice <=", value, "drugprice");
            return (Criteria) this;
        }

        public Criteria andDrugpriceIn(List<Integer> values) {
            addCriterion("drugprice in", values, "drugprice");
            return (Criteria) this;
        }

        public Criteria andDrugpriceNotIn(List<Integer> values) {
            addCriterion("drugprice not in", values, "drugprice");
            return (Criteria) this;
        }

        public Criteria andDrugpriceBetween(Integer value1, Integer value2) {
            addCriterion("drugprice between", value1, value2, "drugprice");
            return (Criteria) this;
        }

        public Criteria andDrugpriceNotBetween(Integer value1, Integer value2) {
            addCriterion("drugprice not between", value1, value2, "drugprice");
            return (Criteria) this;
        }

        public Criteria andDrugsalIsNull() {
            addCriterion("drugsal is null");
            return (Criteria) this;
        }

        public Criteria andDrugsalIsNotNull() {
            addCriterion("drugsal is not null");
            return (Criteria) this;
        }

        public Criteria andDrugsalEqualTo(Integer value) {
            addCriterion("drugsal =", value, "drugsal");
            return (Criteria) this;
        }

        public Criteria andDrugsalNotEqualTo(Integer value) {
            addCriterion("drugsal <>", value, "drugsal");
            return (Criteria) this;
        }

        public Criteria andDrugsalGreaterThan(Integer value) {
            addCriterion("drugsal >", value, "drugsal");
            return (Criteria) this;
        }

        public Criteria andDrugsalGreaterThanOrEqualTo(Integer value) {
            addCriterion("drugsal >=", value, "drugsal");
            return (Criteria) this;
        }

        public Criteria andDrugsalLessThan(Integer value) {
            addCriterion("drugsal <", value, "drugsal");
            return (Criteria) this;
        }

        public Criteria andDrugsalLessThanOrEqualTo(Integer value) {
            addCriterion("drugsal <=", value, "drugsal");
            return (Criteria) this;
        }

        public Criteria andDrugsalIn(List<Integer> values) {
            addCriterion("drugsal in", values, "drugsal");
            return (Criteria) this;
        }

        public Criteria andDrugsalNotIn(List<Integer> values) {
            addCriterion("drugsal not in", values, "drugsal");
            return (Criteria) this;
        }

        public Criteria andDrugsalBetween(Integer value1, Integer value2) {
            addCriterion("drugsal between", value1, value2, "drugsal");
            return (Criteria) this;
        }

        public Criteria andDrugsalNotBetween(Integer value1, Integer value2) {
            addCriterion("drugsal not between", value1, value2, "drugsal");
            return (Criteria) this;
        }

        public Criteria andDrugeffectIsNull() {
            addCriterion("drugeffect is null");
            return (Criteria) this;
        }

        public Criteria andDrugeffectIsNotNull() {
            addCriterion("drugeffect is not null");
            return (Criteria) this;
        }

        public Criteria andDrugeffectEqualTo(String value) {
            addCriterion("drugeffect =", value, "drugeffect");
            return (Criteria) this;
        }

        public Criteria andDrugeffectNotEqualTo(String value) {
            addCriterion("drugeffect <>", value, "drugeffect");
            return (Criteria) this;
        }

        public Criteria andDrugeffectGreaterThan(String value) {
            addCriterion("drugeffect >", value, "drugeffect");
            return (Criteria) this;
        }

        public Criteria andDrugeffectGreaterThanOrEqualTo(String value) {
            addCriterion("drugeffect >=", value, "drugeffect");
            return (Criteria) this;
        }

        public Criteria andDrugeffectLessThan(String value) {
            addCriterion("drugeffect <", value, "drugeffect");
            return (Criteria) this;
        }

        public Criteria andDrugeffectLessThanOrEqualTo(String value) {
            addCriterion("drugeffect <=", value, "drugeffect");
            return (Criteria) this;
        }

        public Criteria andDrugeffectLike(String value) {
            addCriterion("drugeffect like", value, "drugeffect");
            return (Criteria) this;
        }

        public Criteria andDrugeffectNotLike(String value) {
            addCriterion("drugeffect not like", value, "drugeffect");
            return (Criteria) this;
        }

        public Criteria andDrugeffectIn(List<String> values) {
            addCriterion("drugeffect in", values, "drugeffect");
            return (Criteria) this;
        }

        public Criteria andDrugeffectNotIn(List<String> values) {
            addCriterion("drugeffect not in", values, "drugeffect");
            return (Criteria) this;
        }

        public Criteria andDrugeffectBetween(String value1, String value2) {
            addCriterion("drugeffect between", value1, value2, "drugeffect");
            return (Criteria) this;
        }

        public Criteria andDrugeffectNotBetween(String value1, String value2) {
            addCriterion("drugeffect not between", value1, value2, "drugeffect");
            return (Criteria) this;
        }

        public Criteria andDrugnumIsNull() {
            addCriterion("drugnum is null");
            return (Criteria) this;
        }

        public Criteria andDrugnumIsNotNull() {
            addCriterion("drugnum is not null");
            return (Criteria) this;
        }

        public Criteria andDrugnumEqualTo(Integer value) {
            addCriterion("drugnum =", value, "drugnum");
            return (Criteria) this;
        }

        public Criteria andDrugnumNotEqualTo(Integer value) {
            addCriterion("drugnum <>", value, "drugnum");
            return (Criteria) this;
        }

        public Criteria andDrugnumGreaterThan(Integer value) {
            addCriterion("drugnum >", value, "drugnum");
            return (Criteria) this;
        }

        public Criteria andDrugnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("drugnum >=", value, "drugnum");
            return (Criteria) this;
        }

        public Criteria andDrugnumLessThan(Integer value) {
            addCriterion("drugnum <", value, "drugnum");
            return (Criteria) this;
        }

        public Criteria andDrugnumLessThanOrEqualTo(Integer value) {
            addCriterion("drugnum <=", value, "drugnum");
            return (Criteria) this;
        }

        public Criteria andDrugnumIn(List<Integer> values) {
            addCriterion("drugnum in", values, "drugnum");
            return (Criteria) this;
        }

        public Criteria andDrugnumNotIn(List<Integer> values) {
            addCriterion("drugnum not in", values, "drugnum");
            return (Criteria) this;
        }

        public Criteria andDrugnumBetween(Integer value1, Integer value2) {
            addCriterion("drugnum between", value1, value2, "drugnum");
            return (Criteria) this;
        }

        public Criteria andDrugnumNotBetween(Integer value1, Integer value2) {
            addCriterion("drugnum not between", value1, value2, "drugnum");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}